package com.ce.service;

import com.ce.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ce
 * @since 2022-01-26
 */
public interface ProductService extends IService<Product> {
    /**
     * @return 商品列表
     */
    public List<Product> getList(Product product);

    /**
     * @param id 根据id删除
     * @return 返回值
     */
    public Integer deleteById(Integer id);

    public Map<String, String> addProduct(Product product);

    public Map<String, String> updateProduct(Product product);
}
